package com.swjd.jingle.pojo;

import java.util.Date;

public class Chat {
    private Integer chatID;

    private String message;

    private String imageURL;

    private Date sendTime;

    private String username1;

    private String username2;

    public Chat() {
    }

    public Chat(Integer chatID, String message, String imageURL, Date sendTime, String username1, String username2) {
        this.chatID = chatID;
        this.message = message;
        this.imageURL = imageURL;
        this.sendTime = sendTime;
        this.username1 = username1;
        this.username2 = username2;
    }

    public Integer getChatID() {
        return chatID;
    }

    public void setChatID(Integer chatID) {
        this.chatID = chatID;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    public String getImageURL() {
        return imageURL;
    }

    public void setImageURL(String imageURL) {
        this.imageURL = imageURL == null ? null : imageURL.trim();
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getUsername1() {
        return username1;
    }

    public void setUsername1(String username1) {
        this.username1 = username1 == null ? null : username1.trim();
    }

    public String getUsername2() {
        return username2;
    }

    public void setUsername2(String username2) {
        this.username2 = username2 == null ? null : username2.trim();
    }
}